PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Hypnotic / Polar Mirror / flexi - shelter in infinity nz- ass.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.000 |
| 8 | fDecay=0.950 |
| 9 | fVideoEchoZoom=0.498 |
| 10 | fVideoEchoAlpha=0.000 |
| 11 | nVideoEchoOrientation=2 |
| 12 | nWaveMode=0 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=0 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.000 |
| 26 | fWaveScale=0.010 |
| 27 | fWaveSmoothing=0.630 |
| 28 | fWaveParam=-1.000 |
| 29 | fModWaveAlphaStart=0.710 |
| 30 | fModWaveAlphaEnd=1.300 |
| 31 | fWarpAnimSpeed=1.000 |
| 32 | fWarpScale=1.331 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=13.30089 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=-0.28000 |
| 40 | dy=-0.32000 |
| 41 | warp=0.01000 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.650 |
| 45 | wave_g=0.650 |
| 46 | wave_b=0.650 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.000 |
| 55 | ib_r=1.000 |
| 56 | ib_g=1.000 |
| 57 | ib_b=1.000 |
| 58 | ib_a=1.000 |
| 59 | nMotionVectorsX=12.800 |
| 60 | nMotionVectorsY=9.600 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.000 |
| 64 | mv_r=1.000 |
| 65 | mv_g=0.910 |
| 66 | mv_b=0.710 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.250 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.00000 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wavecode_1_enabled=0 |
| 89 | wavecode_1_samples=512 |
| 90 | wavecode_1_sep=0 |
| 91 | wavecode_1_bSpectrum=0 |
| 92 | wavecode_1_bUseDots=0 |
| 93 | wavecode_1_bDrawThick=0 |
| 94 | wavecode_1_bAdditive=0 |
| 95 | wavecode_1_scaling=1.00000 |
| 96 | wavecode_1_smoothing=0.50000 |
| 97 | wavecode_1_r=1.000 |
| 98 | wavecode_1_g=1.000 |
| 99 | wavecode_1_b=1.000 |
| 100 | wavecode_1_a=1.000 |
| 101 | wavecode_2_enabled=0 |
| 102 | wavecode_2_samples=512 |
| 103 | wavecode_2_sep=0 |
| 104 | wavecode_2_bSpectrum=0 |
| 105 | wavecode_2_bUseDots=0 |
| 106 | wavecode_2_bDrawThick=0 |
| 107 | wavecode_2_bAdditive=0 |
| 108 | wavecode_2_scaling=1.00000 |
| 109 | wavecode_2_smoothing=0.50000 |
| 110 | wavecode_2_r=1.000 |
| 111 | wavecode_2_g=1.000 |
| 112 | wavecode_2_b=1.000 |
| 113 | wavecode_2_a=1.000 |
| 114 | wavecode_3_enabled=0 |
| 115 | wavecode_3_samples=512 |
| 116 | wavecode_3_sep=0 |
| 117 | wavecode_3_bSpectrum=0 |
| 118 | wavecode_3_bUseDots=0 |
| 119 | wavecode_3_bDrawThick=0 |
| 120 | wavecode_3_bAdditive=0 |
| 121 | wavecode_3_scaling=1.00000 |
| 122 | wavecode_3_smoothing=0.50000 |
| 123 | wavecode_3_r=1.000 |
| 124 | wavecode_3_g=1.000 |
| 125 | wavecode_3_b=1.000 |
| 126 | wavecode_3_a=1.000 |
| 127 | shapecode_0_enabled=0 |
| 128 | shapecode_0_sides=100 |
| 129 | shapecode_0_additive=0 |
| 130 | shapecode_0_thickOutline=0 |
| 131 | shapecode_0_textured=0 |
| 132 | shapecode_0_num_inst=1 |
| 133 | shapecode_0_x=0.290 |
| 134 | shapecode_0_y=0.500 |
| 135 | shapecode_0_rad=0.29878 |
| 136 | shapecode_0_ang=0.00000 |
| 137 | shapecode_0_tex_ang=0.00000 |
| 138 | shapecode_0_tex_zoom=1.00000 |
| 139 | shapecode_0_r=0.000 |
| 140 | shapecode_0_g=0.000 |
| 141 | shapecode_0_b=0.000 |
| 142 | shapecode_0_a=1.000 |
| 143 | shapecode_0_r2=0.000 |
| 144 | shapecode_0_g2=0.000 |
| 145 | shapecode_0_b2=0.000 |
| 146 | shapecode_0_a2=0.000 |
| 147 | shapecode_0_border_r=1.000 |
| 148 | shapecode_0_border_g=1.000 |
| 149 | shapecode_0_border_b=1.000 |
| 150 | shapecode_0_border_a=0.000 |
| 151 | shapecode_1_enabled=0 |
| 152 | shapecode_1_sides=100 |
| 153 | shapecode_1_additive=0 |
| 154 | shapecode_1_thickOutline=0 |
| 155 | shapecode_1_textured=0 |
| 156 | shapecode_1_num_inst=1 |
| 157 | shapecode_1_x=0.700 |
| 158 | shapecode_1_y=0.500 |
| 159 | shapecode_1_rad=0.29878 |
| 160 | shapecode_1_ang=0.00000 |
| 161 | shapecode_1_tex_ang=0.00000 |
| 162 | shapecode_1_tex_zoom=1.00000 |
| 163 | shapecode_1_r=0.000 |
| 164 | shapecode_1_g=0.000 |
| 165 | shapecode_1_b=0.000 |
| 166 | shapecode_1_a=1.000 |
| 167 | shapecode_1_r2=0.000 |
| 168 | shapecode_1_g2=0.000 |
| 169 | shapecode_1_b2=0.000 |
| 170 | shapecode_1_a2=0.000 |
| 171 | shapecode_1_border_r=1.000 |
| 172 | shapecode_1_border_g=1.000 |
| 173 | shapecode_1_border_b=1.000 |
| 174 | shapecode_1_border_a=0.000 |
| 175 | shapecode_2_enabled=0 |
| 176 | shapecode_2_sides=34 |
| 177 | shapecode_2_additive=0 |
| 178 | shapecode_2_thickOutline=0 |
| 179 | shapecode_2_textured=1 |
| 180 | shapecode_2_num_inst=1 |
| 181 | shapecode_2_x=0.500 |
| 182 | shapecode_2_y=0.500 |
| 183 | shapecode_2_rad=0.22167 |
| 184 | shapecode_2_ang=0.00000 |
| 185 | shapecode_2_tex_ang=0.00000 |
| 186 | shapecode_2_tex_zoom=0.40839 |
| 187 | shapecode_2_r=1.000 |
| 188 | shapecode_2_g=1.000 |
| 189 | shapecode_2_b=1.000 |
| 190 | shapecode_2_a=1.000 |
| 191 | shapecode_2_r2=0.000 |
| 192 | shapecode_2_g2=0.000 |
| 193 | shapecode_2_b2=0.000 |
| 194 | shapecode_2_a2=0.000 |
| 195 | shapecode_2_border_r=1.000 |
| 196 | shapecode_2_border_g=1.000 |
| 197 | shapecode_2_border_b=1.000 |
| 198 | shapecode_2_border_a=0.000 |
| 199 | shape_2_per_frame1=x=.5+q4;y=.5+q5; |
| 200 | shape_2_per_frame2=rad=sin(time);; |
| 201 | shapecode_3_enabled=0 |
| 202 | shapecode_3_sides=4 |
| 203 | shapecode_3_additive=0 |
| 204 | shapecode_3_thickOutline=0 |
| 205 | shapecode_3_textured=0 |
| 206 | shapecode_3_num_inst=1 |
| 207 | shapecode_3_x=0.500 |
| 208 | shapecode_3_y=0.500 |
| 209 | shapecode_3_rad=0.10000 |
| 210 | shapecode_3_ang=0.00000 |
| 211 | shapecode_3_tex_ang=0.00000 |
| 212 | shapecode_3_tex_zoom=1.00000 |
| 213 | shapecode_3_r=1.000 |
| 214 | shapecode_3_g=0.000 |
| 215 | shapecode_3_b=0.000 |
| 216 | shapecode_3_a=1.000 |
| 217 | shapecode_3_r2=0.000 |
| 218 | shapecode_3_g2=1.000 |
| 219 | shapecode_3_b2=0.000 |
| 220 | shapecode_3_a2=0.000 |
| 221 | shapecode_3_border_r=1.000 |
| 222 | shapecode_3_border_g=1.000 |
| 223 | shapecode_3_border_b=1.000 |
| 224 | shapecode_3_border_a=0.100 |
| 225 | per_frame_init_1=zoom=1; |
| 226 | per_frame_init_2=xpos=0; |
| 227 | per_frame_init_3=ypos=0; |
| 228 | per_frame_1=bb = bb*0.99 + bass*0.02; |
| 229 | per_frame_2=mm = mm*0.99 + mid*0.02; |
| 230 | per_frame_3=tt = tt*0.99 + treb*0.02; |
| 231 | per_frame_4= |
| 232 | per_frame_5=mx = max(max(bb,mm),tt); |
| 233 | per_frame_6=mn = min(min(bb,mm),tt); |
| 234 | per_frame_7= |
| 235 | per_frame_8=t1 = (bb-mn)/(mx-mn); |
| 236 | per_frame_9=t2 = (mm-mn)/(mx-mn); |
| 237 | per_frame_10=t3 = (tt-mn)/(mx-mn); |
| 238 | per_frame_11= |
| 239 | per_frame_12=v = 0.2/fps; |
| 240 | per_frame_13=bm = bm + (t1-t2)*v; |
| 241 | per_frame_14=mt = mt + (t2-t3)*v; |
| 242 | per_frame_15= |
| 243 | per_frame_16=// coordinates spiral 1 |
| 244 | per_frame_17=q11 = 0.5; // X |
| 245 | per_frame_18=q12 = 0; // Y |
| 246 | per_frame_19= |
| 247 | per_frame_20=// coordinates spiral 2 |
| 248 | per_frame_21=q13 = -0.5; |
| 249 | per_frame_22=q14 = 0; |
| 250 | per_frame_23= |
| 251 | per_frame_24=q15 = 0.5/asin(1); // pi/4 |
| 252 | per_frame_25= |
| 253 | per_frame_26=q16 = -bm; // rotation |
| 254 | per_frame_27=q17 = mt; // growth |
| 255 | per_frame_28= |
| 256 | per_frame_29=// raytraced sphere code |
| 257 | per_frame_30= |
| 258 | per_frame_31=d = 4; // distance of the sphere, the farther you're away the more you'll see on the horizon |
| 259 | per_frame_32=z = 0.4; // distance of the pane where the scene is projected on, wider distance = smaller apex angle of the camera, very small distances = fish eyes view |
| 260 | per_frame_33= |
| 261 | per_frame_34=zz = 2.2; // linear zoom |
| 262 | per_frame_35= |
| 263 | per_frame_36=pi = asin(1)*2; |
| 264 | per_frame_37=pi2inv = 0.5/pi; |
| 265 | per_frame_38=maskangle = asin( 1/d); |
| 266 | per_frame_39=q32 = maskangle; // hit = (cameras angle < mask_angle) |
| 267 | per_frame_40=q31 = d; |
| 268 | per_frame_41=q30 = z; |
| 269 | per_frame_42=q29 = pi2inv; |
| 270 | per_frame_43=q28 = pi; |
| 271 | per_frame_44=q27 = 1/zz; |
| 272 | per_frame_45= |
| 273 | per_frame_46=v = 0.4; |
| 274 | per_frame_47=j1 = j1*0.95 + sqr(bass*4)*v; |
| 275 | per_frame_48=j2 = j2*0.95 + sqr(mid*4)*v; |
| 276 | per_frame_49=j3 = j3*0.95 + sqr(treb*4)*v; |
| 277 | per_frame_50= |
| 278 | per_frame_51=n = n + j1*0.0052; |
| 279 | per_frame_52=n1 = n1 + j2*0.0052; |
| 280 | per_frame_53=n2 = n2 + j3*0.0052; |
| 281 | per_frame_54= |
| 282 | per_frame_55= |
| 283 | per_frame_56=w1 = bm*pi; // solid angles to rotate the sphere in its origin |
| 284 | per_frame_57=w2 = mt*pi; |
| 285 | per_frame_58=w3 = n2*0.0; |
| 286 | per_frame_59= |
| 287 | per_frame_60=q20 = cos(w1); |
| 288 | per_frame_61=q21 = sin(w1); |
| 289 | per_frame_62=q22 = cos(w2); |
| 290 | per_frame_63=q23 = sin(w2); |
| 291 | per_frame_64=q24 = cos(w3); |
| 292 | per_frame_65=q25 = sin(w3); |
| 293 | warp_1=`float2 numerator, denominator, fraction; |
| 294 | warp_2=` |
| 295 | warp_3=`float2 polar, factorA, factorB, product; |
| 296 | warp_4=`sampler sampler_pano_earth; |
| 297 | warp_5=`sampler sampler_pano_earth_clouds; |
| 298 | warp_6=`sampler sampler_pano_earth_night; |
| 299 | warp_7=` |
| 300 | warp_8=`shader_body |
| 301 | warp_9=`{ |
| 302 | warp_10=` |
| 303 | warp_11=`float z = q30; |
| 304 | warp_12=`float d = q31; |
| 305 | warp_13=`float pi = q28; |
| 306 | warp_14=`float pi2inv = q29; |
| 307 | warp_15=`float mask_apex = q32; |
| 308 | warp_16=`float zoom = q27; |
| 309 | warp_17=` |
| 310 | warp_18=`float2 c = zoom*(uv_orig-0.5)*aspect.xy; |
| 311 | warp_19=` |
| 312 | warp_20=`float camera_apex = atan2( length(c),z); |
| 313 | warp_21=` |
| 314 | warp_22=`bool mask = mask_apex >= camera_apex; |
| 315 | warp_23=` |
| 316 | warp_24=`float longitude = atan2(c.x,c.y); |
| 317 | warp_25=`float latitude = (pi - camera_apex + asin(d*sin(camera_apex))); |
| 318 | warp_26=` |
| 319 | warp_27=`float2 polar = float2(longitude,latitude); |
| 320 | warp_28=` |
| 321 | warp_29=`float3 p = float3( sin(polar.x)*sin(polar.y),cos(polar.x)*sin(polar.y),cos(polar.y)); |
| 322 | warp_30=` |
| 323 | warp_31=`factorA = p.zx; |
| 324 | warp_32=`factorB = float2(q22,q23); |
| 325 | warp_33=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y,factorA.x*factorB.y + factorA.y*factorB.x); |
| 326 | warp_34=`p.zx = product.xy; |
| 327 | warp_35=` |
| 328 | warp_36=`factorA = p.zy; |
| 329 | warp_37=`factorB = float2(q20,q21); |
| 330 | warp_38=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y,factorA.x*factorB.y + factorA.y*factorB.x); |
| 331 | warp_39=`p.zy = product.xy; |
| 332 | warp_40=` |
| 333 | warp_41=`polar = float2(atan2(p.z,p.x),atan2(p.y,length(p.xz)))*pi2inv*float2(1,2)+float2(0,0.5); |
| 334 | warp_42=` |
| 335 | warp_43=` |
| 336 | warp_44=`ret = mask*tex2d(sampler_pano_earth,polar); |
| 337 | warp_45=`ret = lerp(ret,1,mask*tex2d(sampler_pano_earth_clouds,polar)); |
| 338 | warp_46=` |
| 339 | warp_47=` |
| 340 | warp_48=`/*** Flexis cleaned up Moebius spiral code ***/ |
| 341 | warp_49=` |
| 342 | warp_50=`float cutoff = 1; |
| 343 | warp_51=`int n = -2; |
| 344 | warp_52=`float s = 0.666; |
| 345 | warp_53=` |
| 346 | warp_54=` c = (uv_orig-0.5)*2*aspect.wz; |
| 347 | warp_55=` numerator = (c + float2(q11,q12))*64; |
| 348 | warp_56=` denominator = c + float2(q13,q14); |
| 349 | warp_57=` fraction = float2( numerator.x*denominator.x + numerator.y*denominator.y, |
| 350 | warp_58=` numerator.y*denominator.x - numerator.x*denominator.y)/ |
| 351 | warp_59=` (denominator.x*denominator.x + denominator.y*denominator.y); |
| 352 | warp_60=` c = fraction-0.5; |
| 353 | warp_61=` float1 ang_hq = n*atan2(c.x,c.y); |
| 354 | warp_62=` float2 spiral = float2(ang_hq*q15+q16,s*aspect.w*log(length(c))+q17); |
| 355 | warp_63=` spiral = 0.5 + (0.5 - abs( frac( spiral * 0.5 ) * 2.0 - 1.0 ))*cutoff; // mirror |
| 356 | warp_64=` |
| 357 | warp_65=`/**********************************************/ |
| 358 | warp_66=` |
| 359 | warp_67=` |
| 360 | warp_68=`ret = lerp(ret,GetPixel(spiral)-0.02,1-mask); |
| 361 | warp_69=`float4 noise2 = tex3D(sampler_noisevol_hq, |
| 362 | warp_70=` ((uv_orig.xyy |
| 363 | warp_71=` )*texsize.xyy*texsize_noisevol_hq.zww |
| 364 | warp_72=` ).xyz* |
| 365 | warp_73=` float3(1,1,0)*0.05 + |
| 366 | warp_74=` time*float3(0,0,1)*0.4 |
| 367 | warp_75=` ); |
| 368 | warp_76=`ret -= (noise2)*.3; |
| 369 | warp_77=`} |
| 370 | comp_1=`float2 numerator, denominator, fraction; |
| 371 | comp_2=` |
| 372 | comp_3=`shader_body |
| 373 | comp_4=`{ |
| 374 | comp_5=` |
| 375 | comp_6=`/*** Flexis cleaned up Moebius spiral code ***/ |
| 376 | comp_7=` |
| 377 | comp_8=`float cutoff = 1; |
| 378 | comp_9=`int n = -1; |
| 379 | comp_10=`float s = 0.3; |
| 380 | comp_11=` |
| 381 | comp_12=` float2 c = (uv-0.5)*2*aspect.wz; |
| 382 | comp_13=` numerator = (c + float2(q11,q12))*64; |
| 383 | comp_14=` denominator = c + float2(q13,q14); |
| 384 | comp_15=` fraction = float2( numerator.x*denominator.x + numerator.y*denominator.y, |
| 385 | comp_16=` numerator.y*denominator.x - numerator.x*denominator.y)/ |
| 386 | comp_17=` (denominator.x*denominator.x + denominator.y*denominator.y); |
| 387 | comp_18=` c = fraction-0.5; |
| 388 | comp_19=` float1 ang_hq = n*atan2(c.x,c.y); |
| 389 | comp_20=` float2 spiral = float2(ang_hq*q15+q16,s*aspect.w*log(length(c))+q17); |
| 390 | comp_21=` spiral = 0.5 + (0.5 - abs( frac( spiral * 0.5 ) * 2.0 - 1.0 ))*cutoff; // mirror |
| 391 | comp_22=` |
| 392 | comp_23=`/**********************************************/ |
| 393 | comp_24=` |
| 394 | comp_25=` ret = tex2D(sampler_main, spiral); |
| 395 | comp_26=` |
| 396 | comp_27=`float4 noise2 = tex3D(sampler_noisevol_hq, |
| 397 | comp_28=` ((uv.xyy |
| 398 | comp_29=` )*texsize.xyy*texsize_noisevol_hq.zww |
| 399 | comp_30=` ).xyz* |
| 400 | comp_31=` float3(1,1,0)*0.05 + |
| 401 | comp_32=` time*float3(0,0,1)*0.4 |
| 402 | comp_33=` ); |
| 403 | comp_34=`ret *= (noise2)*2; |
| 404 | comp_35=`} |